package com.framework.modules.currentcount;


import com.framework.exception.util.RespResult;
import com.framework.modules.sys.controller.AbstractController;
import com.framework.page.PageUtils;
import com.framework.service.yhbservice.YhbFlowTakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("sys/flowTake")
public class FlowTakeController extends AbstractController {
    @Autowired
    private YhbFlowTakeService yhbFlowTakeService;

    @RequestMapping("list")
    public RespResult list(@RequestParam Map<String,Object> params){
        params.put("sysUserId",getDeptUserId());
        PageUtils page=yhbFlowTakeService.queryFlowTakePage(params);
        return RespResult.ok().put("page",page);
    }
}
